xentop: add support for qdisks
authorCharles Arnold <carnold@suse.com>
Tue, 24 Mar 2015 02:55:08 +0000 (20:55 -0600)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 31 Mar 2015 15:54:14 +0000 (16:54 +0100)
commiteb141d23a00a349dc1474bb982e7812fc091f845
treef2d9e694a96415789b6b67caadaa2eedcc69b1da
parent2e044cf48b4748d3df570e2dda6ff40eec41cc6e
xentop: add support for qdisks

Now that Xen uses qdisks by default and qemu does not write out
statistics to sysfs this patch queries the QMP for disk statistics.

This patch depends on libyajl for parsing statistics returned from
QMP. The runtime requires libyajl 2.0.3 or newer for required bug
fixes in yajl_tree_parse().

Libxl is modified to create a new socket dedicated for the use of
libxenstat for querying the block statistics using QMP.

The current APIs remain unchanged. It works within the existing
framework of libxenstat.

Signed-off-by: Charles Arnold <carnold@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dm.c
tools/libxl/libxl_qmp.c
tools/xenstat/libxenstat/Makefile
tools/xenstat/libxenstat/src/xenstat.c
tools/xenstat/libxenstat/src/xenstat_linux.c
tools/xenstat/libxenstat/src/xenstat_priv.h
tools/xenstat/libxenstat/src/xenstat_qmp.c [new file with mode: 0644]
tools/xenstat/xentop/Makefile